# $NetBSD: Makefile,v 1.2 2016/07/09 11:41:57 rillig Exp $

DISTNAME=	freeswitch-music-${VERSION}
VERSION=	1.0.52
CATEGORIES=	audio
MASTER_SITES=	http://files.freeswitch.org/
DIST_SUBDIR=	freeswitch
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	FreeSwitch Music - All Bitrates
LICENSE=	mpl-1.1

MUSICDIR=	share/freeswitch/sounds/music
PLIST_SUBST+=	MUSICDIR="${MUSICDIR}"
NO_BUILD=	yes

pre-install:
	${MV} ${WRKDIR}/music ${WRKDIR}/${DISTNAME}

do-install:
	@${ECHO_MSG} "Installing files..."
	for d in ${SOUND_DIRS}; do \
		${INSTALL_DATA} ${WRKSRC}/$$d/* ${DESTDIR}${PREFIX}/${MUSICDIR}/$$d/; \
	done

.include "options.mk"

.include "../../mk/bsd.pkg.mk"
